class CampAppointment < ApplicationRecord
  belongs_to :member
  belongs_to :camp
  belongs_to :coach
  belongs_to :order, class_name: "CampOrder", foreign_key: :camp_order_id
  has_one :store, through: :camp, source: :store
  has_one :company, through: :camp, source: :company
  enum status: [:canceled, :appointed, :absent, :signed, :suspended]
end
